package com.dy.user.mapper;

import com.dy.basic.mapper.BaseMapper;
import com.dy.user.domain.Logininfo;
import com.dy.user.dto.AccountLoginDto;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dayong
 * @since 2023-03-04
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    // 根据用户名查询用户的数据
    Logininfo findByAccount(AccountLoginDto dto);

    // 根据电话查询用户的信息
    Logininfo findByPhone(String phone);
}
